package com.parking.carsystem.parkingchargesystem.adapter;


import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.parking.carsystem.parkingchargesystem.fragment.FragmentFactory;

/**
 * Created by Administrator on 2017/10/25 0025.
 */

public class HomeCustomPagerAdapter extends FragmentStatePagerAdapter {
    public HomeCustomPagerAdapter(@NonNull FragmentManager fm) {
        super(fm);
    }
//    ArrayList<String> mTitleText;

//    public HomeCustomPagerAdapter(FragmentManager fm/*, ArrayList<String> titleText*/) {
//        super(fm);
//        mTitleText = titleText;
//    }

    @Override
    public Fragment getItem(int position) {
        return FragmentFactory.getCustumFragmentInsance(position);
    }

    @Override
    public int getCount() {
        return 2;
    }

/*    @Override
    public CharSequence getPageTitle(int position) {
        //设置表头的title
        return mTitleText.get(position);
    }*/
}
